using System;
using System.Data.Linq.Mapping;
using CoreLibrary;

namespace Entities.DataBase.Persistent {

    [Table(Name = "D_LOG")]
    public class Log {

        public Log() {
            Id = GuidUtil.GuidN();
            DateCreated = DateTime.UtcNow;
        }

        [Column(Name = "ID", IsPrimaryKey = true)]
        public string Id { get; set; }

        [Column(Name = "NAME")]
        public string Name { get; set; }

        [Column(Name = "DESCRIPTION")]
        public string Description { get; set; }

        [Column(Name = "OPERATOR_ID")]
        public string OperatorId { get; set; }

        [Column(Name = "DATE_CREATED")]
        public DateTime DateCreated { get; set; }

    }
}